IModel.FindChildrenByClass method

Namespace: NextDesign.Core

Description

Searches for instances of the specified class among the owned instances of this instance. This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of owned instances of the specified class. If the class specified in the class name cannot be found, an empty collection will be returned. It also returns an empty collection if no such instance exists.

argument

Name Type Description
className string Class Name
Specify the class name or fully qualified name.
If null or an empty string is specified, the return value of this method will be an empty collection.
recursive bool Do recursive lookups of ownership?
Default is False. If
False is specified, the instance will be directly owned by this instance.If
True is specified, the instance will be recursively searched for ownership. Search
fuzzy bool className argument as the name of the class instead of the fully qualified name.
If False, evaluates as the class whose fully qualified name matches className.
If True, evaluate as if the class whose class name matches className is specified.

The default value is True.

Return value

  • IModelCollection